package com.练习案例.五个人抢三个红包;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        MyThread t3 = new MyThread();
        MyThread t4 = new MyThread();
        MyThread t5 = new MyThread();


        t1.setName("1");
        t2.setName("2");
        t3.setName("3");
        t4.setName("4");
        t5.setName("5");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}

